package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class DiaryListBeanDay implements IJsonParser, Serializable {
	
	private String date;
	private ArrayList<DiaryBean> list;
	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	public ArrayList<DiaryBean> getList() {
		return list;
	}

	public void setList(ArrayList<DiaryBean> list) {
		this.list = list;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if(!TextUtils.isEmpty(json)){
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, DiaryListBeanDay.class);
		}
		return null;
	}

}
